package cn.me.service.impl;

import cn.me.dao.PayrankMapper;
import cn.me.pojo.Payrank;
import cn.me.service.PayRankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class PayRankServiceImpl implements PayRankService {
    @Autowired
    private PayrankMapper payrankMapper;
    @Override
    public List<Payrank> all() {

        return payrankMapper.selectByExample(null);
    }

    @Override
    public Payrank selectByRid(int id) {

        return payrankMapper.selectByPrimaryKey(id);
    }
}
